Skip to content

[feature](nereids) extend infer predicates - #41731

Merged
morrySnow merged 4 commits into
apache:masterfrom
feiniaofeiafei:new_extend_predicates
Oct 15, 2024
Merged

morrySnow merged 4 commits into
apache:masterfrom
feiniaofeiafei:new_extend_predicates

Conversation

@feiniaofeiafei

@feiniaofeiafei feiniaofeiafei commented Oct 11, 2024 •

Copy link
Copy Markdown
Collaborator

This pr refactors the PredicatePropagation module and adds support for predicate deduction, including:

Support for predicate deduction of like, not in, !=;
Support for predicate deduction of abs(b)=1 for a=b and abs(a)=1;
Support for transitive deduction of non-equivalent relations, for example, a>b b>1 leads to a>1.
Deleted useless predicates.
But still has something to do in predicate inference:
support expr in infer predicate, e.g. abs(t1.c1)>abs(t2.c2) and abs(t1.c1)<1
need to add expr qualifier info, to determine whether abs(t1.c1) and abs(t2.c2) is from same table.
tpcds 1000 total time
before pr:
689804 | 554230 | 550065 | 546197
after pr:
670477 | 551991 | 544594 | 542985
No performance degradation was observed

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.3-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants